package zut.edu.cn.concertticketmanagementsystem.service.impl;

import org.springframework.stereotype.Service;
import zut.edu.cn.concertticketmanagementsystem.entity.AdminUser;
import zut.edu.cn.concertticketmanagementsystem.service.AdminUserService;
import zut.edu.cn.concertticketmanagementsystem.service.UserService;

/**
 * Created with IntelliJ IDEA.
 * User: cyl
 * Date: 2019/6/24
 * Time: 14:57
 * Description: No Description
 */
//注解为一个服务
@Service
public class AdminUserServiceImpl implements AdminUserService {

    @Override
    public boolean login2(AdminUser adminUser) {
        if ("admin".equals(adminUser.getAname())
                && "admin".equals(adminUser.getApwd()))
            return true;
        return false;
    }
}